<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>箭头函数</title>
</head>
<body>
  <script>
    //es6新增定义函数的方式
    // function sum(num1,num2) {
    //   console.log(num1 + num2);
    // }
    const sum = (num1,num2) => {
      console.log(num1 + num2);
    }
    sum(11,22);
    //只有一个参数式
    // function v (v) {
    //   return v;
    // }
    const  v = v => v;
    var value = v(10);
    console.log(value)
  </script>
</body>
</html>